package com.rmt.www.daoImpl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.rmt.www.vo.History;

public class HistoryRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int ix) throws SQLException {
		
		return new History(
				rs.getInt("hid"),
				rs.getInt("pid"),
				rs.getString("type"),
				rs.getString("title"),
				rs.getInt("authorId"),
				rs.getString("version"),
				rs.getString("priority"),
				rs.getString("source"),
				rs.getString("rational"),
				rs.getTimestamp("createdtime"),
				rs.getInt("updateUserId"),
				rs.getTimestamp("updatedtime"),
				rs.getString("status"),
				rs.getString("description"),
				rs.getString("cost"),
				rs.getInt("effort"),
				rs.getString("risk"),
				rs.getInt("updatedtimes"),
				rs.getString("category"),
				rs.getInt("artifactid"));
	}
}
